import request from '@/utils/request'

/**
 * 二级包装明细分页查询
 * @param {查询条件} data
 */
export function pageProdTwoPackDetail(query) {
  return request({
    url: 'ProdManage/ProdTwoPackDetail/pageList',
    method: 'get',
    params: query,
  })
}

/**
 * 新增二级包装明细
 * @param data
 */
export function addProdTwoPackDetail(data) {
  return request({
    url: 'ProdManage/ProdTwoPackDetail',
    method: 'post',
    data: data,
  })
}
/**
 * 修改二级包装明细
 * @param data
 */
export function updateProdTwoPackDetail(data) {
  return request({
    url: 'ProdManage/ProdTwoPackDetail',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取二级包装明细详情
 * @param {Id}
 */
export function getProdTwoPackDetail(id) {
  return request({
    url: 'ProdManage/ProdTwoPackDetail/' + id,
    method: 'get'
  })
}

/**
 * 删除二级包装明细
 * @param {主键} pid
 */
export function delProdTwoPackDetail(pid) {
  return request({
    url: 'ProdManage/ProdTwoPackDetail/delete',
    method: 'POST',
    data: pid
  })
}
